import { ref, computed, reactive } from 'vue'
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', {
  state: () => ({
    userInfoId: '',
    userName: '',
    userNick: '',
    token: '',
    is_login: false,
  }),
  persist: true,
})

// export const useCounterStore = defineStore('counter', () => {
//   const count = ref(0)
//   const doubleCount = computed(() => count.value * 2)
//   function increment() {
//     count.value++
//   }
//   const info = ref({
//     userInfoId: '',
//     userName: '',
//     userNick: '',
//     token: '',
//   })
//   const is_login = ref(false)
//   const token = ref('')

//   return { count, doubleCount, increment, is_login, token, info }
// })
